/*******************************************************************************
* Copyright (C) 2019 China Micro Semiconductor Limited Company. All Rights Reserved.
*
* This software is owned and published by:
* CMS LLC, No 2609-10, Taurus Plaza, TaoyuanRoad, NanshanDistrict, Shenzhen, China.
*
* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
*
* This software contains source code for use with CMS
* components. This software is licensed by CMS to be adapted only
* for use in systems utilizing CMS components. CMS shall not be
* responsible for misuse or illegal use of this software for devices not
* supported herein. CMS is providing this software "AS IS" and will
* not be responsible for issues arising from incorrect user implementation
* of the software.
*
* This software may be replicated in part or whole for the licensed use,
* with the restriction that this Disclaimer and Copyright notice must be
* included with each copy of this software, whether used in part or whole,
* at all times.
*/

#ifndef __USER_OUTPUT_H__
#define __USER_OUTPUT_H__
/*****************************************************************************/
/* Include files */
/*****************************************************************************/



/*****************************************************************************/
/* Global pre-processor symbols/macros ('#define') */
/*****************************************************************************/


/*****************************************************************************/
/* Global type definitions ('typedef') */
/*****************************************************************************/

typedef struct 
{
	uint8_t buzzerDeal;
	uint8_t bzSum;	
	uint8_t bzTCnt;
	uint8_t ledSum;
	uint8_t ledTCnt;
	uint8_t led;
	uint16_t cutTimeDebug;
	uint8_t powerDown;
	
}OUT_STR;

/*****************************************************************************/
/* Global variable declarations ('extern', definition in C source) */
/*****************************************************************************/


/*****************************************************************************/
/* Global function prototypes ('extern', definition in C source) */
/*****************************************************************************/





extern OUT_STR strOutput;



/*FUNCTIONS*/
void UO_InitOutput(void);
void UO_LED_Run_Function(void);
void UO_LedRunFunction(void);
void UO_LED_SOC_Indication(uint32_t volt_mv,uint8_t display_en);
void UO_ErrorLedDispaly(uint32_t error_flag);





#endif /* __USER_OUTPUT_H__ */


